﻿using System;
using System.Runtime.Remoting;
using RemoteClient;

namespace RemoteObject
{
    public class RemotingObject : MarshalByRefObject,IRemoteObject
    {
        public Person GetPersonInfo(string name, string sex, int age)
        {
            Person person = new Person();
            person.Name = name;
            person.Sex = sex;
            person.Age = age;
            return person;
        }

    }
}
